package javaapplication1.view;

import java.util.Scanner;

import javaapplication1.control.MenuControl;

public class MenuView {

	private static MenuControl menuControl = new MenuControl();

	public static void menu() {
		Scanner scanner = new Scanner(System.in);
		System.out.println("******************************");
		System.out.println("主菜单");
		System.out.println("1，购买宠物");
		System.out.println("2，出售宠物");
		System.out.println("******************************");
		System.out.print("你的选择：");
		int choose = scanner.nextInt();
		if (choose == 1 || choose == 2) {
			menuControl.menuControl(choose);
		} else {
			System.out.println("输入有误，请重新输入");
			MenuView.menu();
		}
	}

}